﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SRM_DataSet" targetNamespace="http://tempuri.org/DataSet1.xsd" xmlns:mstns="http://tempuri.org/DataSet1.xsd" xmlns="http://tempuri.org/DataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="SRM" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SRM (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.SRM.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SRM_ApplicantFamilyMembers_TblTableAdapter" GeneratorDataComponentClassName="SRM_ApplicantFamilyMembers_TblTableAdapter" Name="SRM_ApplicantFamilyMembers_Tbl" UserDataComponentName="SRM_ApplicantFamilyMembers_TblTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="SRM (Web.config)" DbObjectName="SRM.dbo.SRM_ApplicantFamilyMembers_Tbl" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[SRM_ApplicantFamilyMembers_Tbl] WHERE (([FamilyMemberKey] = @Original_FamilyMemberKey))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_FamilyMemberKey" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FamilyMemberKey" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[SRM_ApplicantFamilyMembers_Tbl] ([ApplicantKey], [MemberName], [Relationship], [BirthDate], [Nationality], [FamilyEmployer], [Occupation], [EmergencyContact], [ContactNo], [Timestamp], [DateOfMarriage]) VALUES (@ApplicantKey, @MemberName, @Relationship, @BirthDate, @Nationality, @FamilyEmployer, @Occupation, @EmergencyContact, @ContactNo, @Timestamp, @DateOfMarriage)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ApplicantKey" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ApplicantKey" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MemberName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MemberName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Relationship" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Relationship" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@BirthDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="BirthDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nationality" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nationality" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FamilyEmployer" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FamilyEmployer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Occupation" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Occupation" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EmergencyContact" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EmergencyContact" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ContactNo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ContactNo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DateOfMarriage" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DateOfMarriage" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT FamilyMemberKey, ApplicantKey, MemberName, Relationship, BirthDate, Nationality, FamilyEmployer, Occupation, EmergencyContact, ContactNo, Timestamp, DateOfMarriage FROM dbo.SRM_ApplicantFamilyMembers_Tbl</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[SRM_ApplicantFamilyMembers_Tbl] SET [ApplicantKey] = @ApplicantKey, [MemberName] = @MemberName, [Relationship] = @Relationship, [BirthDate] = @BirthDate, [Nationality] = @Nationality, [FamilyEmployer] = @FamilyEmployer, [Occupation] = @Occupation, [EmergencyContact] = @EmergencyContact, [ContactNo] = @ContactNo, [Timestamp] = @Timestamp, [DateOfMarriage] = @DateOfMarriage WHERE (([FamilyMemberKey] = @Original_FamilyMemberKey))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ApplicantKey" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ApplicantKey" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MemberName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MemberName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Relationship" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Relationship" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@BirthDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="BirthDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nationality" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nationality" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FamilyEmployer" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FamilyEmployer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Occupation" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Occupation" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EmergencyContact" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EmergencyContact" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ContactNo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ContactNo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DateOfMarriage" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DateOfMarriage" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_FamilyMemberKey" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FamilyMemberKey" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="FamilyMemberKey" DataSetColumn="FamilyMemberKey" />
              <Mapping SourceColumn="ApplicantKey" DataSetColumn="ApplicantKey" />
              <Mapping SourceColumn="MemberName" DataSetColumn="MemberName" />
              <Mapping SourceColumn="Relationship" DataSetColumn="Relationship" />
              <Mapping SourceColumn="BirthDate" DataSetColumn="BirthDate" />
              <Mapping SourceColumn="Nationality" DataSetColumn="Nationality" />
              <Mapping SourceColumn="FamilyEmployer" DataSetColumn="FamilyEmployer" />
              <Mapping SourceColumn="Occupation" DataSetColumn="Occupation" />
              <Mapping SourceColumn="EmergencyContact" DataSetColumn="EmergencyContact" />
              <Mapping SourceColumn="ContactNo" DataSetColumn="ContactNo" />
              <Mapping SourceColumn="Timestamp" DataSetColumn="Timestamp" />
              <Mapping SourceColumn="DateOfMarriage" DataSetColumn="DateOfMarriage" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="SRM_DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="SRM_DataSet" msprop:Generator_UserDSName="SRM_DataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SRM_ApplicantFamilyMembers_Tbl" msprop:Generator_TableClassName="SRM_ApplicantFamilyMembers_TblDataTable" msprop:Generator_TableVarName="tableSRM_ApplicantFamilyMembers_Tbl" msprop:Generator_TablePropName="SRM_ApplicantFamilyMembers_Tbl" msprop:Generator_RowDeletingName="SRM_ApplicantFamilyMembers_TblRowDeleting" msprop:Generator_RowChangingName="SRM_ApplicantFamilyMembers_TblRowChanging" msprop:Generator_RowEvHandlerName="SRM_ApplicantFamilyMembers_TblRowChangeEventHandler" msprop:Generator_RowDeletedName="SRM_ApplicantFamilyMembers_TblRowDeleted" msprop:Generator_UserTableName="SRM_ApplicantFamilyMembers_Tbl" msprop:Generator_RowChangedName="SRM_ApplicantFamilyMembers_TblRowChanged" msprop:Generator_RowEvArgName="SRM_ApplicantFamilyMembers_TblRowChangeEvent" msprop:Generator_RowClassName="SRM_ApplicantFamilyMembers_TblRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="FamilyMemberKey" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnFamilyMemberKey" msprop:Generator_ColumnPropNameInRow="FamilyMemberKey" msprop:Generator_ColumnPropNameInTable="FamilyMemberKeyColumn" msprop:Generator_UserColumnName="FamilyMemberKey" type="xs:long" />
              <xs:element name="ApplicantKey" msprop:Generator_ColumnVarNameInTable="columnApplicantKey" msprop:Generator_ColumnPropNameInRow="ApplicantKey" msprop:Generator_ColumnPropNameInTable="ApplicantKeyColumn" msprop:Generator_UserColumnName="ApplicantKey" type="xs:long" />
              <xs:element name="MemberName" msprop:Generator_ColumnVarNameInTable="columnMemberName" msprop:Generator_ColumnPropNameInRow="MemberName" msprop:Generator_ColumnPropNameInTable="MemberNameColumn" msprop:Generator_UserColumnName="MemberName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Relationship" msprop:Generator_ColumnVarNameInTable="columnRelationship" msprop:Generator_ColumnPropNameInRow="Relationship" msprop:Generator_ColumnPropNameInTable="RelationshipColumn" msprop:Generator_UserColumnName="Relationship" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="BirthDate" msprop:Generator_ColumnVarNameInTable="columnBirthDate" msprop:Generator_ColumnPropNameInRow="BirthDate" msprop:Generator_ColumnPropNameInTable="BirthDateColumn" msprop:Generator_UserColumnName="BirthDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Nationality" msprop:Generator_ColumnVarNameInTable="columnNationality" msprop:Generator_ColumnPropNameInRow="Nationality" msprop:Generator_ColumnPropNameInTable="NationalityColumn" msprop:Generator_UserColumnName="Nationality" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FamilyEmployer" msprop:Generator_ColumnVarNameInTable="columnFamilyEmployer" msprop:Generator_ColumnPropNameInRow="FamilyEmployer" msprop:Generator_ColumnPropNameInTable="FamilyEmployerColumn" msprop:Generator_UserColumnName="FamilyEmployer" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Occupation" msprop:Generator_ColumnVarNameInTable="columnOccupation" msprop:Generator_ColumnPropNameInRow="Occupation" msprop:Generator_ColumnPropNameInTable="OccupationColumn" msprop:Generator_UserColumnName="Occupation" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="EmergencyContact" msprop:Generator_ColumnVarNameInTable="columnEmergencyContact" msprop:Generator_ColumnPropNameInRow="EmergencyContact" msprop:Generator_ColumnPropNameInTable="EmergencyContactColumn" msprop:Generator_UserColumnName="EmergencyContact" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="3" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ContactNo" msprop:Generator_ColumnVarNameInTable="columnContactNo" msprop:Generator_ColumnPropNameInRow="ContactNo" msprop:Generator_ColumnPropNameInTable="ContactNoColumn" msprop:Generator_UserColumnName="ContactNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Timestamp" msprop:Generator_ColumnVarNameInTable="columnTimestamp" msprop:Generator_ColumnPropNameInRow="Timestamp" msprop:Generator_ColumnPropNameInTable="TimestampColumn" msprop:Generator_UserColumnName="Timestamp" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DateOfMarriage" msprop:Generator_ColumnVarNameInTable="columnDateOfMarriage" msprop:Generator_ColumnPropNameInRow="DateOfMarriage" msprop:Generator_ColumnPropNameInTable="DateOfMarriageColumn" msprop:Generator_UserColumnName="DateOfMarriage" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SRM_ApplicantFamilyMembers_Tbl" />
      <xs:field xpath="mstns:FamilyMemberKey" />
    </xs:unique>
  </xs:element>
</xs:schema>